package com.hyc.www.service.impl;

import java.util.Queue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.CyclicBarrier;

/**
 * @author <a href="mailto:kobe524348@gmail.com">黄钰朝</a>
 * @description
 * @date 2019-07-19 16:56
 */
public class TicketList {
    private Queue queue;
    private CyclicBarrier barrier;
    private boolean full=false;

    public boolean isFull() {
        return full;
    }

    public void setFull(boolean full) {
        this.full = full;
    }

    public Queue getQueue() {
        return queue;
    }

    public void setQueue(Queue queue) {
        this.queue = queue;
    }

    public CyclicBarrier getBarrier() {
        return barrier;
    }

    public void setBarrier(CyclicBarrier barrier) {
        this.barrier = barrier;
    }

    public TicketList(Queue queue, CyclicBarrier barrier) {
        this.queue = queue;
        this.barrier = barrier;
    }
}
